package cn.shyouchi.wuguanjia.android.api.profile;

import java.util.Map;

import cn.shyouchi.wuguanjia.android.model.BaseRequestResult;
import okhttp3.MultipartBody;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;
import rx.Observable;

/**
 * Created by Eenie on 2017/3/9 at 15:46
 * Email: 472279981@qq.com
 * Des:
 */

public interface ProfileService {


    @FormUrlEncoded
    @POST("userUpdate")
    Observable<BaseRequestResult> upProfile(@FieldMap() Map<String, Object> params);


    @Multipart
    @POST("userUpdate")
    Observable<BaseRequestResult> upHeader(@Part() MultipartBody.Part params);





}
